<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="header" >
     <a class="left-btn pointer" href="{$appymdian}"><span class="iconfont icon-back"></span></a>
    <div class="title">口袋退货</div>
   
     
  </div>
 
    <div class="uclist"> {foreach item=c from=$data}
      <div class="item">
      <div class="pd">
        <div class="hd"> {if $c.status eq 0}未确认{elseif $c.status eq 1}已完成{else}已取消{/if}   <span class="right">{$c.dateline|date:Y-m-d H:i:s}</span></div>
       	{foreach item=p from=$c.products}
        <div class="row">
        	<div class="g-sd1"><img src="{$p.imgurl|images_site}.100x100.jpg"></div>
            <div class="g-mn1">
            	<div class="g-mn1c">
                	<div class="hd">{$p.title}</div>
                    <div class="row h30"><span class="cor1">￥{$p.price}</span> <span class="right cor1">X {$p.thnum}</span></div>
                </div>
            </div>
        </div>
       
        {/foreach}
        
         
            <div class="tools">
            {if $c.status eq 0}
            {if $c.isreceived eq 1}
            <a href="{$appymdian}?m=koudai_order_thshop&a=received&id={$c.id}">确认收货</a>
            {/if}
             <a href="{$appymdian}?m=koudai_order_thshop&a=cancel&id={$c.id}">取消退货</a>
            {/if}
            
            
            </div>
              
            
        
      </div>
       </div>
      {/foreach} </div>
    <div>{$pagelist}</div>
    
     
  
  {include file="footer.html"} 
  <script>
  $(function(){
	 $(".thsubmit").on("click",function(data){
		var obj=$(this);
		$.get("{$appymdian}?m=ymdian_dz&a=thshop&ajax=1",{
			order_id:$(this).attr("orderid"),
			id:$(this).attr("did"),
			k:obj.parents(".row").find(".k").val()
		},function(data){
			if(data.error){
				skyToast(data.message);
			}else{
				skyToast(data.message);
			}
		},"json");
	 });
  });
  </script>
</body>
</html>